﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using DTO;
using System.Data.SqlClient;
using System.Data;
namespace BUS
{
    public class DocGiaBUS
    {
        DocGiaDAO DG_DAO = new DocGiaDAO();
      //  DocGiaDTO DG_DTO = new DocGiaDTO();
        public void khoitao_KN()
        {
            SqlConnection conn = new SqlConnection();
            conn = DG_DAO.khoitaoKN();
        }
        public SqlConnection ChuoiKN_Load()
        {
            SqlConnection conn1 = DG_DAO.khoitaoKN();
            return conn1;
        }
        public string Phatsinh_MaDG()
        {
            return DG_DAO.Phatsinh_maDG();
        }
        public void LapTheDocGia(DocGiaDTO DG_DTO)
        {
            DG_DAO.LapTheDocGia(DG_DTO);
        }
        public void xoa_DocGia(DocGiaDTO DG_DTO)
        {
            DG_DAO.xoaDocGia(DG_DTO);
        }
        public void Sus_ThongTinDocGia(DocGiaDTO DG_DTO)
        {
            DG_DAO.xoaDocGia(DG_DTO);
        }
        public DataSet Hien_DocGia()
        {
            return  DG_DAO.HienThi_DSDG();
        }
    }
}
